// 放置所有的请求接口
import httpRequest from '@/request/request'


export function logins(data) {
    return httpRequest({
        url: '/sys/login',
        method: 'post',
        data
    })
}

export function getImgCode(username) {
    return httpRequest({
        url: '/sys/code/' + username,
        method: "get",
        responseType: 'blob'
    })
}

export function logOut() {
    return httpRequest({
        url: '/sys/logout',
        method: 'post'
    })
}
